#include <iostream>
#include <stdlib.h>
#include <fstream>

using namespace std;

int main(int argc, char ** argv)
{

	if (argc <= 1) {
		cout << "Usage: flashprog <data.cfg>" << endl;
		exit(1);
	}

	char * cfgfile = argv[1];

	cout << "Parsing " << cfgfile << endl;
	ifstream	cfgfl(cfgfile);
	if (!cfgfl.good()) {
		cout << "Problems opening " << cfgfile << endl;
		exit(1);
	}
	
	char line[1024];
	while(!cfgfl.eof())
	{
		cfgfl.

	}
	


}
